package com.yqg.education.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * train_sign 实体类
 *
 * @author 张芸博
 * @since 2025-04-10
 */
@Getter
@Setter
@TableName("train_sign")
public class TrainSign implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 课时ID
     */
    private Long periodId;

    /**
     * 学员ID
     */
    private Long stuId;

    /**
     * 签到时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 课时进度 0未完成；1已完成
     */
    private Integer flow;

    /**
     * 已观看视频时长
     */
    private Integer time;
    /**
     * 签到照片
     */
    private String photo;

    /**
     * 手写签到
     */
    private String url;

    /**
     * 是否删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private String courseName;

    @TableField(exist = false)
    private String periodName;
}
